/**  
 * All rights Reserved, Designed By daiw
 * @Title:  PageQuery.java   
 * @Package org.easy.system.manage.dto   
 * @Description:    TODO (用一句话描述该文件做什么)   
 * @author: daiw     
 * @date:   2019年10月18日 下午3:00:22   
 * @Copyright: 2019 daiw Inc. All rights reserved. 
 */
package org.easy.system.manage.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: PageQuery
 * @Description: 分页查询基本参数类
 * @author: daiw
 * @date: 2019年10月18日 下午3:00:22
 */
@ApiModel("分页查询基本参数")
public class PageQuery {
	@ApiModelProperty(value = "页索引", position = 1, required = true)
	private Integer pageIndex;
	@ApiModelProperty(value = "每页数量", position = 2, required = true)
	private Integer pageSize;

	/**
	 * @return the pageIndex
	 */
	public Integer getPageIndex() {
		if (pageIndex == null) {
			pageIndex = 0;
		}
		return pageIndex;
	}

	/**
	 * @param pageIndex
	 *            the pageIndex to set
	 */
	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	/**
	 * @return the pageSize
	 */
	public Integer getPageSize() {
		if (pageSize == null) {
			pageSize = 10;
		}
		return pageSize;
	}

	/**
	 * @param pageSize
	 *            the pageSize to set
	 */
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
